<?xml version="1.0" encoding="big5"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=big5" language="java" import="java.sql.*,java.util.Date,java.text.*,ckstudio.*" errorPage="" %>
<% request.setCharacterEncoding("big5"); %>
<HTML xmlns="http://www.w3.org/1999/xhtml">
Auto Load HTML Data
<%
String action = request.getParameter("action");

ckstudio.Test_HTMLData t = new ckstudio.Test_HTMLData();

if(action != null && action.equals("save")){
	t.save_to_db = true;
	out.println("Save to Database");
}else{
	t.save_to_db = false;
	out.println("It is preview data, if you will save to database please click button.");
	out.println("<form><input type=hidden name=action value=save><input type='submit' value='Save to DB'></form>");
}
t.main(null);
out.println("<pre>");
out.println(t.message);
out.println("</pre>");
%>
</HTML>